package git.matrix.mapper;

import git.matrix.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
@Mapper
public interface RoleMapper {
    //测试
    @Select("select*from smbms_role where id=#{id}")
    public Role getRoleId(@Param("id") int id);

    /**
     * 查询全部角色
     * @return getRoleListP
     */
    public List<Role> getRoleList();
}
